package com.fyx.entity;

import com.fyx.annotation.Query;
import lombok.Data;
import org.springframework.data.annotation.Transient;
import org.springframework.data.mongodb.core.mapping.Field;

import java.sql.Timestamp;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

@Data
public class GoldRecEntity {
    @Transient
    private List<Timestamp> qTime;

    @Transient
    private Timestamp beginTime;

    @Transient
    private Timestamp endTime;

    @Transient
    private String flag;

    @Field("_id")
    private String id;

    private String pid;

    private long begin_num;

    private long num;

    @Transient
    private long num1;

    @Transient
    private long num2;

    private String way;

    private String detail;

    private String roomType;

    private long time;

    @Transient
    private long yesterdayData;

    @Transient
    private long todayData;

    @Transient
    private Long deptId;

    @Query(propName = "id", type = Query.Type.IN, joinName = "dept")
    @Transient
    private Set<Long> deptIds = new HashSet<>();

}
